﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%
Object o = request.getSession().getAttribute("userinfo");
if(o==null){
	String sRootPath = ((HttpServletRequest)pageContext.getRequest()).getContextPath();
	if(sRootPath.endsWith("/"))sRootPath=sRootPath.substring(sRootPath.length()-1);
	request.setAttribute("loginmes", "不存在此用户！");
	response.getWriter().write("<script language=\"javascript\">");
	response.getWriter().write("window.parent.location=\""+sRootPath+"/logout.action\";");
	response.getWriter().write("</script>");
	return;
}
%>
